package com.artpri.model;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * CollectGoods entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "collect_goods", catalog = "jpw")
public class CollectGoods implements java.io.Serializable {

	// Fields

	private Integer collectId;
	private Integer userNum;
	private Integer goodsNum;
	private Timestamp collectTime;
	private String collectName;
	private String collectMainUrl;

	// Constructors

	/** default constructor */
	public CollectGoods() {
	}

	/** full constructor */
	public CollectGoods(Integer userNum, Integer goodsNum,
			Timestamp collectTime, String collectName, String collectMainUrl) {
		this.userNum = userNum;
		this.goodsNum = goodsNum;
		this.collectTime = collectTime;
		this.collectName = collectName;
		this.collectMainUrl = collectMainUrl;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "collect_id", unique = true, nullable = false)
	public Integer getCollectId() {
		return this.collectId;
	}

	public void setCollectId(Integer collectId) {
		this.collectId = collectId;
	}

	@Column(name = "user_num", nullable = false)
	public Integer getUserNum() {
		return this.userNum;
	}

	public void setUserNum(Integer userNum) {
		this.userNum = userNum;
	}

	@Column(name = "goods_num", nullable = false)
	public Integer getGoodsNum() {
		return this.goodsNum;
	}

	public void setGoodsNum(Integer goodsNum) {
		this.goodsNum = goodsNum;
	}

	@Column(name = "collect_time", nullable = false, length = 19)
	public Timestamp getCollectTime() {
		return this.collectTime;
	}

	public void setCollectTime(Timestamp collectTime) {
		this.collectTime = collectTime;
	}

	@Column(name = "collect_name", nullable = false, length = 60)
	public String getCollectName() {
		return this.collectName;
	}

	public void setCollectName(String collectName) {
		this.collectName = collectName;
	}

	@Column(name = "collect_main_url", nullable = false, length = 100)
	public String getCollectMainUrl() {
		return this.collectMainUrl;
	}

	public void setCollectMainUrl(String collectMainUrl) {
		this.collectMainUrl = collectMainUrl;
	}

}